import { ObjCreate } from "../../common/ObjCreate";
type int = number;
//class LoveTaskGiveFlowerItem
    
    export  class LoveTaskGiveFlowerItem /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initUI();
            return;
        }

        public get num(): int
        {
            return this._num;
        }

        /* internal  */initUI(): void
        {
            buttonMode = true;
            this._flowerText = ObjCreate.createTextField("", 0, 0, 220, 20, this);
            this._flowerText.mouseEnabled = false;
            return;
        }

        public updateData(arg1: Object /* flash.display.Bitmap */, arg2: string, arg3: int): void
        {
            this._num = arg3;
            this._flowerText.htmlText = arg2;
            this._flowerBmp = arg1;
            this._flowerBmp.x = this._flowerText.textWidth / 2;
            this._flowerBmp.y = (this._flowerText.textHeight - this._flowerBmp.height) / 2;
            addChildAt(this._flowerBmp, 0);
            return;
        }

        /* internal */ /* var */_flowerText: Object /* flash.text.TextField */;

        /* internal */ /* var */_flowerBmp: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_num: int;
    }
